package com.backflash.client;
 
import java.util.Vector;

import com.backflash.client.bean.User;
import com.google.gwt.user.client.rpc.AsyncCallback;
 
  public interface BackFlashServiceAsync {
    public void checkLogin(String userName, String password, AsyncCallback callback);
    public void getAllTopics(AsyncCallback<Vector<String>> callback);
    public void getTopic(String topicHeading, AsyncCallback<Topic> callback);
    public void saveTopic(Topic t, AsyncCallback callback);
    public void saveMessage(Integer topicID, Message m, AsyncCallback callback);
    public void deleteTopic(String topicHeading, AsyncCallback callback);
    public void deleteMessage(Integer topicID, Message m, AsyncCallback callback);
    public void getUserFromSession(AsyncCallback<User> callback);
    public void setUserInSession(User user, AsyncCallback callback);
	public void getAllUsers(AsyncCallback<Vector<User>> callback);
	public void deleteUser(String userName, AsyncCallback callback);
	public void changeUserName(String oldUserName, String newUserName, AsyncCallback callback);
  }